//
//  PageView.m
//  FingerChinese
//
//  Created by luar on 12/02/2010.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "PageView.h"

@implementation PageView

/*- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
	[super touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event];
}*/

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
	[super touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event];
	UITouch *touch = [[event allTouches] anyObject];
	if (touch.tapCount > 1) {
        [[NSNotificationCenter defaultCenter] postNotificationName:@"DoubleTapZoom" object:self];
	} else {
		NSDictionary *dict = [NSDictionary dictionaryWithObject:event forKey:@"event"];
		[[NSNotificationCenter defaultCenter] postNotificationName:@"PageTouchesBegan" object:self userInfo:dict];
	}
}

@end
